package com.atguigu.spring.bean;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class LookupConfig {

	@Bean("person2")
	public Person2 person(){
		return new Person2();
	}

	@Bean
	@Scope(scopeName= ConfigurableBeanFactory.SCOPE_PROTOTYPE)
	public Cat cat(){
		return new Cat();
	}

}
